import request from '@/utils/request'

// 获取面经列表的接口
export function interviewQueryRequest (params) {
  return request({
    url: '/admin/interview/query',
    method: 'GET',
    params
  })
}

// 新增面经的接口
export function interviewCreateRequest (data) {
  return request({
    url: '/admin/interview/create',
    method: 'POST',
    data
  })
}

// 删除面经的接口
export function interviewRemoveRequest (data) {
  return request({
    url: '/admin/interview/remove',
    method: 'DELETE',
    data
  })
}
// 数据回显
export const getMj = (params) => request.get('/admin/interview/show', { params })

// 数据提交
export function addItem (data) {
  return request({
    url: '/admin/interview/update',
    method: 'put',
    data

  })
}
